import React from 'react';
import { Form } from 'antd';
import { AxUpdateForm } from '@/components/AxForm/AxUpdateForm';
import { AxInput, AxLabel, AxTextArea } from '@/components/AxForm/AxFormItem';

const Back: React.FC<any> = props => {
    const { form, ...rest } = props;

    return (
        <>
            <AxUpdateForm
                form={form}
                title='物资返库'
                {...rest}
                items={[
                    <AxLabel
                        form={form}
                        label="物资名称"
                        field="campusId2"
                        value='浓硫酸'
                    />,
                    <AxLabel
                        form={form}
                        label="物资编码"
                        field="campusId2"
                        value='AS-938939'
                    />,
                    <AxLabel
                        form={form}
                        label="领用量"
                        field="campusId2"
                        value='100ml'
                    />,
                    <AxInput
                        form={form}
                        label="返库量"
                        field="campusId2"
                        required
                    />,
                    <AxTextArea
                        form={form}
                        label="返库备注"
                        field="campusId3"
                        required
                    />,
                ]}
            />
        </>
    );
};

export default Form.create<any>()(Back);
